using UnityEngine;

public class BasePanel : BaseUI
{
    private RectTransform _topArea;
    protected override void OnInitComponent()
    {
        base.OnInitComponent();
        uiType = UIType.Panel;
        _topArea = transform.GetComponentFromChild<RectTransform>("TopArea");
    }
    protected override void OnStart()
    {
        base.OnStart();
        if(_topArea != null) _topArea.anchoredPosition += Vector2.down * UIMgr.Instance.GetBangsHeight;
    }
}
